-- card: 4235 from stack: in -- bmap block id: 0 -- flags: 0000 -- background id: 2795 -- name: EnableMenu -- part 1 (button) -- low flags: 00 -- high flags: 8003 -- rect: left=315 top=307 right=329 bottom=379 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Demo ----- HyperTalk script ----- on mouseUp push this card visual effect iris open go to card id 10546 end mouseUp -- part contents for background part 20 ----- text ----- 5 -- part contents for background part 1 ----- text ----- XCMD -- part contents for background part 22 ----- text ----- EnableMenu menuNumber, itemNumber, TRUE/FALSE -- part contents for background part 13 ----- text ----- EnableMenu is an XCMD that lets you enable and disable items in menus you've created using the NewMenu XFCN. Examples: EnableMenu myMenu, 1, FALSE EnableMenu myMenu, 3, (the userLevel>2) The first example will always disable the first menu item in the menu "myMenu". The second example will disable the third item in "myMenu" IF the userLevel is greater than 2. Passing an item number of 0 (zero) will enable or disable the ENTIRE menu. The menu number you provide to to EnableMenu should be the same number that was returned by NewMenu.